package com.qiujie.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 老年人扩展信息实体
 */
@Data
@Accessors(chain = true)
@TableName("sys_elderly_info")
@ApiModel(value = "ElderlyInfo对象", description = "老年人扩展信息")
public class ElderlyInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("关联用户ID")
    @TableField("staff_id")
    private Integer staffId;

    @ApiModelProperty("房间号")
    @TableField("room_number")
    private String roomNumber;

    @ApiModelProperty("饮食禁忌")
    @TableField("dietary_restrictions")
    private String dietaryRestrictions;

    @ApiModelProperty("健康备注")
    @TableField("health_note")
    private String healthNote;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Timestamp createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Timestamp updateTime;

    @ApiModelProperty("逻辑删除，0未删除，1删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer deleteFlag;
} 